/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.redirect('/', '/swagger-ui.html', 302);

  router.get('/user/getCaptcha', controller.user.getCaptcha);

  router.post('/user/login', controller.user.login);

  router.post('/user/verify', controller.user.verify);
  
  router.post('/user/resetPassword', controller.user.resetPassword);
};
